﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace SStuff.FlowControls
{
    [Flags]
    public enum KeyboardDirection
    {
        None = 0x0,
        LeftRight = 0x1,
        UpDown=0x2,
        Both = 0x3
    }

    public static class KeyboardDirectionExtensions
    {
        public static bool Contains(this KeyboardDirection direction, KeyboardDirection toContain)
        {
            return (direction & toContain) == toContain;
        }
    }
}
